package com.maybach.workflow.core.manager;

import com.maybach.util.query.support.PageResult;
import com.maybach.workflow.common.model.FlowApplyIndexDO;
import com.maybach.workflow.common.query.FlowApplyIndexQuery;

import java.util.List;


/**
 * Manager for FlowApplyIndex.
 */
public interface FlowApplyIndexManager {
    /**
     * query count by query condition.
     */
    int countByQuery(FlowApplyIndexQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(FlowApplyIndexQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert selective.
     */
    long insertSelective(FlowApplyIndexDO record);

    /**
     * select by query condition.
     */
    List<FlowApplyIndexDO> selectByQuery(FlowApplyIndexQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<FlowApplyIndexDO> selectByQueryWithPage(FlowApplyIndexQuery query);

    /**
     * select by primary key.
     */
    FlowApplyIndexDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( FlowApplyIndexDO record,  FlowApplyIndexQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(FlowApplyIndexDO record, FlowApplyIndexQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(FlowApplyIndexDO record);
}